package com.dk.ref;

public class ComputerTest {
    public static void main(String[] args) {
        ComputerService c = (x,y)-> x*y;
        int test = c.test(8, 9);
        System.out.println(test);
        System.out.println(Computer.computer(90,1));
        ComputerService c2 =Computer::computer;
        int test1 = c2.test(6, 8);
        System.out.println(test1);
        //创建对象使用的是构造函数
        UserBean u =()->{
            User u1 = new User();
            return u1;
        };
        UserBean u2 =User::new;
    }
}
